home *** CD-ROM | disk | FTP | other *** search
- property pMyBarSlot, pSpr
-
- on beginSprite me
- pSpr = sprite(me.spriteNum)
- customFont(pSpr.member)
- mRefresh(me)
- end
-
- on endSprite
- pSpr.visible = 1
- end
-
- on mRefresh me
- if not isText(pSpr) then
- exit
- end if
- pSpr.member.text = pSpr.member.text
- pSpr.member.color = blue()
- if inRecipeMode() then
- pSpr.visible = 0
- else
- pSpr.visible = 1
- end if
- end
-
- on mouseDown me
- global gBarTopManager
- if gBarTopManager.pBarSpots[pMyBarSlot][#charCode] = #none then
- alertBeep()
- else
- tell the stage
- makePatronActive(pMyBarSlot)
- end tell
- goToLabel("Current" & pMyBarSlot)
- end if
- end
-
- on mouseEnter
- pSpr.member.color = red()
- sprite(24).locV = pSpr.locV
- end
-
- on mouseLeave
- pSpr.member.color = blue()
- sprite(24).locV = -50
- end
-
- on getPropertyDescriptionList
- return [#pMyBarSlot: [#default: 1, #range: [#min: 1, #max: 3], #format: #integer, #comment: "Slot number:"]]
- end
-